home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-20 / pmpsrc11.zip / HEARD.H < prev    next >
Text File  |  1991-07-30  |  1KB  |  34 lines

  1. /*
  2.     heard.h -- Structure definitions for nodes heard
  3.  
  4.   Poor Man's Packet (PMP)
  5.   Copyright (c) 1991 by Andrew C. Payne    All Rights Reserved.
  6.  
  7.   Permission to use, copy, modify, and distribute this software and its
  8.   documentation without fee for NON-COMMERCIAL AMATEUR RADIO USE ONLY is hereby
  9.   granted, provided that the above copyright notice appear in all copies.
  10.   The author makes no representations about the suitability of this software
  11.   for any purpose.  It is provided "as is" without express or implied warranty.
  12. */
  13.  
  14. /* MHEARD structures and defines */
  15.  
  16. #define MAXID    40    /* max length of broadcast ID */
  17. #define MAXHEARD 19    /* maximum stations in mheard list */
  18.  
  19. struct mheard {
  20.     struct ax25_addr    call;        /* callsign of node */
  21.     time_t            last;        /* time last heard */
  22.     long            count;        /* # packets rec'd */
  23.     long            bytes;        /* # bytes sent */
  24.     byte            flags;        /* node flags */
  25.     byte            id[MAXID];    /* node ID */
  26. };
  27.  
  28. #define HEARD_DIRECT    1    /* heard direct */
  29. #define HEARD_DIGI    2    /* heard digipeating */
  30. #define HEARD_IP    4    /* heard w/ TCP/IP */
  31. #define HEARD_NETROM    8    /* heard w/ NET/ROM */
  32. #define HEARD_INFO    16    /* heard w/ any info packet */
  33.  
  34.